ngl: Remove a few redundant checks
authorMatthias Clasen <mclasen@redhat.com>
Sun, 7 Mar 2021 15:16:56 +0000 (10:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Mar 2021 15:18:47 +0000 (10:18 -0500)
We bail early on invisible nodes. No need to
repeat that check in individual visit functions.

gsk/ngl/gsknglrenderjob.c

index b8f983f862ffec312c4c84123db43381b57b743e..21bd4ebfa09caf165b6095bcae4ef3e056bcaeb0 100644 (file)
@@ -2805,9 +2805,6 @@ gsk_ngl_render_job_visit_blur_node (GskNglRenderJob     *job,
 
   g_assert (blur_radius > 0);
 
-  if (node_is_invisible (child))
-    return;
-
   key.pointer = node;
   key.pointer_is_child = FALSE;
   key.scale_x = job->scale_x;
@@ -2906,9 +2903,6 @@ gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob     *job,
   GskNglRenderOffscreen offscreen = {0};
   float offset[4];
 
-  if (node_is_invisible (child))
-    return;
-
   offscreen.bounds = &node->bounds;
   offscreen.reset_clip = TRUE;